

function fn1(){
    console.log('fn1');
}
setImmediate(fn1);
console.log('fn2');